import request from '@/utils/request'

export function addTestTree(data) {
  return request({
    url: '/sys-service/inner-api/sys/test-tree',
    data: data,
    method: 'post'
  })
}

export function delTestTree(id) {
  return request({
    url: '/sys-service/inner-api/sys/test-tree/' + id,
    method: 'delete'
  })
}

export function updateTestTree(data) {
  return request({
    url: '/sys-service/inner-api/sys/test-tree',
    data: data,
    method: 'put'
  })
}

export function getTestTree(id) {
  return request({
    url: '/sys-service/inner-api/sys/test-tree/' + id,
    method: 'get'
  })
}

export function treeTestTree(data) {
  return request({
    url: '/sys-service/inner-api/sys/test-tree/tree',
    method: 'post',
    data: data
  })
}
